package com.jxnu.duewang.zmly.yangZhi.activity;

import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.Toast;

import com.jxnu.duewang.zmly.R;

public class SettingActivity extends AppCompatActivity implements View.OnClickListener{

    private LinearLayout invalid;
    private ImageView imageView;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_setting);
        invalid=(LinearLayout)findViewById(R.id.invalid);
        imageView=(ImageView)findViewById(R.id.back);
        invalid.setOnClickListener(this);
        imageView.setOnClickListener(this);
    }

    @Override
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.invalid:
                Toast.makeText(SettingActivity.this, "功能暂无实现，正在努力实现", Toast.LENGTH_SHORT).show();
                break;
            case R.id.back:
//        Intent intent = new Intent(this,MyFragment.class);
//        startActivity(intent);
                finish();
                break;
        }
    }

}
